﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Consulta.aspx.cs" Inherits=" RzCorportativo.Views.Cadastros.Consulta"
    ValidateRequest="false" %>

<%@ Register Src="~/Views/Triagem.ascx" TagName="Triagem" TagPrefix="app" %>
<%@ Register Src="~/Recursos/uc/EditorHtml.ascx" TagName="EditorHtml" TagPrefix="app" %>
<%@ Register Src="~/Views/Atestado.ascx" TagName="Atestado" TagPrefix="app" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Consulta
    </h1>
    <div class="tabbable tabs-left">
        <ul class="nav nav-tabs" id="tabMenu">
            <li class="active"><a href="#geral">Geral</a></li>
            <li><a href="#home">Triagem</a></li>
            <li><a href="#sintomas">Sintomas</a></li>
            <li><a href="#diagnostico">Diagnósticos</a></li>
            <li><a href="#receituario">Receituario</a></li>
            <li><a href="#atestado">Atestado</a></li>
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="geral">
                <br />
                <div>
                    <div class="controls">
                        <div class="container-fluid">
                            <div class="row-fluid">
                                <div class="span5">
                                    <div class="control-group">
                                        <asp:Button Text="salvar" runat="server" ID="salvar" CssClass="btn btn-success" Visible="false"
                                            OnClick="salvar_Click" />
                                        <asp:Button Text="imprimir receita" runat="server" ID="receita" CssClass="btn btn-inverse" />
                                        <asp:Button Text="imprimir atestado" runat="server" ID="btnAtestado" CssClass="btn btn-inverse" />
                                        <asp:Button Text="voltar" runat="server" ID="voltar" CssClass="btn btn-info" OnClientClick="return Back();" />
                                        <script type="text/javascript">
                                            function Back() {
                                                window.location.href = '<%=this.ResolveUrl("~/Views/Consulta/Consultas.aspx")%>';
                                                return false;
                                            }
                                        </script>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span5">
                                    <div class="control-group">
                                        <label class="control-label" for="name1">
                                            Data</label>
                                        <div class="controls">
                                            <asp:TextBox runat="server" ID="Data" Enabled="false" />
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="name1">
                                            Medico</label>
                                        <div class="controls">
                                            <asp:TextBox runat="server" ID="Medico" Enabled="false" />
                                        </div>
                                    </div>
                                </div>
                                <div class="span5">
                                    <div class="control-group">
                                        <label class="control-label" for="name">
                                            Paciente</label>
                                        <div class="controls">
                                            <asp:TextBox runat="server" ID="Paciente" Enabled="false" />
                                        </div>
                                    </div>
                                    <div class="control-group">
                                        <label class="control-label" for="name1">
                                            Especialidade</label>
                                        <div class="controls">
                                            <asp:TextBox runat="server" ID="Especialidade" Enabled="false" />
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="tab-pane" id="home">
                <div style="">
                    <app:Triagem runat="server" ID="triagem" />
                </div>
            </div>
            <div class="tab-pane" id="sintomas">
                <app:EditorHtml runat="server" ID="Sintomas" Enabled="false" />
            </div>
            <div class="tab-pane" id="diagnostico">
                <app:EditorHtml runat="server" ID="Diagnostico" Enabled="false" />
            </div>
            <div class="tab-pane" id="receituario">
                <app:EditorHtml runat="server" ID="Receituario" Enabled="false" />
            </div>
            <div class="tab-pane" id="atestado">
                <app:Atestado runat="server" ID="Atestado" />
            </div>
        </div>
    </div>
    <asp:HiddenField runat="server" ID="MedicoId" />
    <asp:HiddenField runat="server" ID="PacienteId" />
    <asp:HiddenField runat="server" ID="ConsultaId" />
    <script type="text/javascript">
        $(function () {
            $('#tabMenu a').click(function (e) {
                e.preventDefault();
                $(this).tab('show');
            })
        })
    </script>
</asp:Content>
